﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Center_Default" Codebehind="Default.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script type="text/javascript" src="../Scripts/jquery-1.5.1.min.js"></script>

    <script type="text/javascript">
        if (window.top != window) window.top.location.href = window.location;
        $(document).ready(
        function () {
            modefHeight();

            $('#main_table').next('p').remove(); //移除form标签额外输出的p标签
        }
        )

        function modefHeight() {
            $("#leftiframe").height($(window).height() - $("#top").height() - $("#footer").height());
            $("#main").height($(window).height() - $("#top").height() - $("#footer").height());
            $("#main_table").height($(window).height());

        }

        function showleft() {
            var o = $("#td_left");
            if (o.css("display") == "none") {
                //o.fadeIn("slow");
                o.css("display", "")
            }
            else {
                //o.fadeOut("slow");
                o.css("display", "none")
            }
        }
    </script>

    <link href="images/css.css" rel="stylesheet" type="text/css" />
</head>
<body style="margin: 0px; padding: 0px; overflow: hidden" onresize="modefHeight();">
    <form id="form1" runat="server" style="margin: 0;">
        <XCL:BoxControl ID="BoxControl1" runat="server">
        </XCL:BoxControl>
        <table id="main_table" width="100%" border="0" cellspacing="0" cellpadding="0" style="background-color: #dfe8f6;">
            <tr>
                <td style="height: 50px; overflow: hidden" colspan="3" id="top" valign="bottom">
                    <div style="padding-left: 30px; font-size: 20px; line-height: 35px; font-weight: bold;
                        color: #019401">
                        <%= NewLife.Configuration.Config.GetConfig<String>("System.Name") %>
                    </div>
                </td>
            </tr>
            <tr>
                <td width="200px" style="border: solid 1px #99bbe8; overflow: hidden;" id="td_left">
                    <iframe height="100%" name="leftiframe" id="leftiframe" width="100%" frameborder="0"
                        src="Frame/Left.aspx" scrolling="no"></iframe>
                </td>
                <td style="border-top: solid 1px #99bbe8; width: 8px; overflow: hidden; cursor: pointer;"
                    onclick="showleft(this)" title="显示或隐藏导航栏">
                    &nbsp;
                </td>
                <td style="border: solid 1px #99bbe8" id="td_right">
                    <iframe height="100%" width="100%" border="0" frameborder="0" id="main" name="main"
                        src="Main.aspx"></iframe>
                </td>
            </tr>
            <tr>
                <td style="background-color: #dfe8f6; height: 3px; overflow: hidden;" colspan="3"
                     >
                </td>
            </tr>
            <tr>
                <td style="overflow: hidden; height:20px;" colspan="3" id="footer" valign="top">
                   
                        <div style="float: left; padding-right: 30px; padding-left: 20px;">
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        IP:<asp:Label ID="Label_IP" runat="server" Text="IP"></asp:Label>
                                        &nbsp;用户:<asp:Label ID="Label_FN" runat="server" Text="FriendName"></asp:Label> 您好！ 
                                        &nbsp;用户级别:<asp:Label ID="Label_Admin" runat="server" Text="Admin"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div  background="images/main_10.gif" style="float:right">
                            <a href="Default.aspx?act=logout" target="_top">
                                <img src="Frame/images/quit.gif" width="69" height="17" border="0" /></a>
                        </div>
                  
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
